﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LGE;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace TileMapEditor
{
    public class ConfirmScreen : GameScreen
    {
        GameScreen backScreen;

        public ConfirmScreen(GameScreen backScreen)
            : base()
        {
            this.backScreen = backScreen;
        }

        public override void Update(GameTime gameTime)
        {
            if (Input.MouseClick) GameScreenManager.Pop();
        }

        public override void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            backScreen.Draw(gameTime, spriteBatch);
            spriteBatch.Draw(GameScreenManager.blackScreen, Vector2.Zero, new Color(0f, 0f, 0f, 0.8f));
        }
    }
}
